microsoft.exchange.webservices.data.CreateItemResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exchange-ws-api Show documentation
Show all versions of exchange-ws-api Show documentation
The source came from http://archive.msdn.microsoft.com/ewsjavaapi
Support for Maven has been added.
The newest version!
/**************************************************************************
* copyright file="CreateItemResponse.java" company="Microsoft"
* Copyright (c) Microsoft Corporation. All rights reserved.
*
* Defines the CreateItemResponse.java.
**************************************************************************/
package microsoft.exchange.webservices.data;
/***
* Represents the response to an individual item creation operation.
*
*
*/
final class CreateItemResponse extends CreateItemResponseBase {
/** 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;
}
/**
* * 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();
}
}
}