Kalaimaan

Doing simple things to make great life

Posts Tagged ‘EWS’

Calendar properties for Excange server (EWS) java

Posted by kalaimaan on February 11, 2009

The calendar have the follwoing properties to create the appointment (Type of Appointment)

1. Simple Appointment (Required fields)

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • set the Reminder
2. Appointment with Meeting  (Required fields)

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Optional Attendee
  • Required Attendee
  • set the Reminder
Recurrency Appointment : Reflecting the appointment by the given condition in the format of( daily, monthly , Yearly, Weekly) and the required input fields are given below
3. Appointment with Recurrency (Daily).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Set Recurrence type (Daily)
  • Set Intervals ( it is make the interval for the each interval)
  • set Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number Of occurrence ( set the number of repetition of appointment in the consecutive intervals)
4. Appointment with Recurrency (Weekly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Set the Recurrence type (Weekly)
  • Set the Intervals ( it is make the interval for the each interval)
  • set the day of week list (like monday, wednesday)
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)
5. Appointment with Recurrency  (monthly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Set the Recurrence type (monthly)
  • Set the Intervals ( it is make the interval for the each interval)
  • set the day of month
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)
6. Appointment with Recurrency  (yearly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Set the Recurrence type (monthly)
  • set month
  • set the day of month
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)
Recurrency Appointment with meeting:

7. Appointment with Recurrency and meeting (Daily).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Optional Attendee
  • Required Attendee
  • Set Recurrence type (Daily)
  • Set Intervals ( it is make the interval for the each interval)
  • set Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number Of occurrence ( set the number of repetition of appointment in the consecutive intervals)
8. Appointment with Recurrency and meeting (Weekly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Optional Attendee
  • Required Attendee
  • Set the Recurrence type (Weekly)
  • Set the Intervals ( it is make the interval for the each interval)
  • set the day of week list (like monday, wednesday)
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)
9. Appointment with Recurrency and meeting  (monthly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Optional Attendee
  • Required Attendee
  • Set the Recurrence type (monthly)
  • Set the Intervals ( it is make the interval for the each interval)
  • set the day of month
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)
10. Appointment with Recurrency and meeting  (yearly).

  • Subject
  • Body of the text
  • Start Date
  • End Date
  • priority (Option)
  • Optional Attendee
  • Required Attendee
  • Set the Recurrence type (monthly)
  • set month
  • set the day of month
  • set the Recurrency start date ( it the mention the date for the recurrency start)
  • Set the Number of occurrence ( set the number of repetition of appointment in the consecutive intervals)

Posted in Exchange Server | Tagged: , , , , | Leave a Comment »

Delete Email item in Exchange Server EWS

Posted by kalaimaan on February 10, 2009

Delete Email Item In Exchange Server using Java Stub interface

The below code is use to delete the particular item of email

/**
*
* @param id
* @param key
* @return
*/
private String deleteMessageItem(String id, String key)
{
String status = “Error”;

DeleteItemType deleteItemType = DeleteItemType.Factory.newInstance();

NonEmptyArrayOfBaseItemIdsType arrayOfBaseItemIdsType = NonEmptyArrayOfBaseItemIdsType.Factory.newInstance();
ItemIdType[] itemIdType = new ItemIdType[1];
itemIdType[0] = ItemIdType.Factory.newInstance();
itemIdType[0].setId(id);
itemIdType[0].setChangeKey(key);
arrayOfBaseItemIdsType.setItemIdArray(itemIdType);
deleteItemType.setItemIds(arrayOfBaseItemIdsType);
deleteItemType.setDeleteType(DisposalType.HARD_DELETE);

DeleteItemDocument deleteItemDocument = DeleteItemDocument.Factory.newInstance();
deleteItemDocument.setDeleteItem(deleteItemType);

DeleteItemResponseDocument deleteItemResponseDocument = null;
try
{
deleteItemResponseDocument = exService.DeleteItem(deleteItemDocument, null, null, null, null);
}
catch (RemoteException e)
{
return status;
}

DeleteItemResponseType deleteItemResponseType = deleteItemResponseDocument.getDeleteItemResponse();

ResponseMessageType[] responseMessageType = deleteItemResponseType.getResponseMessages()
.getDeleteItemResponseMessageArray();

for (int i = 0; i < responseMessageType.length; i++)
{
if (responseMessageType[i].getResponseClass() == ResponseClassType.SUCCESS)
status= “Success”;
else if (responseMessageType[i].getResponseClass() == ResponseClassType.ERROR)
status= “Error”;
}

return status;
}

Posted in Exchange Server | Tagged: , , , , , | 1 Comment »