Java Code Examples for microsoft.exchange.webservices.data.core.service.item.Item#throwIfThisIsNew()

The following examples show how to use microsoft.exchange.webservices.data.core.service.item.Item#throwIfThisIsNew() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RemoveFromCalendar.java    From ews-java-api with MIT License 5 votes vote down vote up
/**
 * Initializes a new instance of the RemoveFromCalendar class.
 *
 * @param referenceItem The reference item
 * @throws Exception the exception
 */
public RemoveFromCalendar(Item referenceItem) throws Exception {
  super(referenceItem.getService());

  referenceItem.throwIfThisIsNew();

  this.referenceItem = referenceItem;
}
 
Example 2
Source File: SuppressReadReceipt.java    From ews-java-api with MIT License 5 votes vote down vote up
/**
 * Initializes a new instance of the class.
 *
 * @param referenceItem the reference item
 * @throws Exception the exception
 */
public SuppressReadReceipt(Item referenceItem) throws Exception {
  super(referenceItem.getService());

  referenceItem.throwIfThisIsNew();
  this.referenceItem = referenceItem;
}
 
Example 3
Source File: PostReply.java    From ews-java-api with MIT License 5 votes vote down vote up
/**
 * Initializes a new instance of the class.
 *
 * @param referenceItem the reference item
 * @throws Exception the exception
 */
public PostReply(Item referenceItem) throws Exception {
  super(referenceItem.getService());
  referenceItem.throwIfThisIsNew();

  this.referenceItem = referenceItem;
}
 
Example 4
Source File: ResponseObject.java    From ews-java-api with MIT License 2 votes vote down vote up
/**
 * 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());
  referenceItem.throwIfThisIsNew();
  this.referenceItem = referenceItem;
}