Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-31-2008, 02:12 AM
Active Member
 
Posts: 30
Default [SOLVED] Usage of method zimbraMailBox.getAppointment()

I am trying to get the list of attendees of an appointment. for this I get the summary of appoitmnet for today and then from there get the list of appointments. from list of appointmnets i get 1 appoitment and get its appointmnet id....
Now I try to use the method zimbraMailBox.getAppointment() but it gives me an exception: invalid attribute:id

My code is :

List<ZApptSummaryResult> appSummaryResult = zimbraMailBox.getApptSummaries(null,1217390400000L , 1217476800000L, folderIds, TimeZone.getTimeZone("Europe/Brussels"),null);

for (int i =0; i< appSummaryResult.size();i++){
ZApptSummaryResult zAppSmR = appSummaryResult.get(i);
System.out.println(zAppSmR.getFolderId()+"<--This is folder id");
List<ZAppointmentHit> aapointmentList= zAppSmR.getAppointments();

for(int j =0;j<aapointmentList.size();j++){
ZAppointmentHit hit = aapointmentList.get(j);
System.out.println("\nStart date"+hit.getStartDate());
System.out.println("Name"+hit.getName());
System.out.println("End date"+hit.getEndDate());
System.out.println("Duration"+hit.getDuration());
System.out.println("Start time"+hit.getStartTime());
System.out.println("End time"+hit.getEndTime());
System.out.println("Id"+hit.getId());
System.out.println("UId"+hit.getUid());
System.out.println("ConversationId"+hit.getConvers ationId());
System.out.println("InviteComponentNumber"+hit.get InviteComponentNumber());
System.out.println("InviteId"+hit.getInviteId());
System.out.println("SeriesComponentNumber"+hit.get SeriesComponentNumber());
System.out.println("SeriesInviteId"+hit.getSeriesI nviteId());
System.out.println("TagIds"+hit.getTagIds());
ZAppointment Zapp= zimbraMailBox.getAppointment(hit.getId());
StringBuffer sb = new StringBuffer();
List<ZInvite> list =Zapp.getInvites();
for(int k =0; k<list.size(); k++){
ZInvite zInvite = list.get(k);
ZComponent component= zInvite.getComponent();
List<ZAttendee> attenddes= component.getAttendees();

for (int m = 0; m < attenddes.size(); m++) {
ZAttendee participant = attenddes.get(m);
sb.append(participant.getMember());
}
System.out.println("List of Participant is:"+sb.toString());
}
appointmentId = hit.getUid();

}

}

Can somebody tell me what is the valid value of ID in zimbraMailBox.getAppointment(String id) method
Reply With Quote
  #2 (permalink)  
Old 08-26-2008, 12:24 AM
Starter Member
 
Posts: 1
Default

I am also getting same problem. I have tried both calItemid(###) and InviteId(###-###).
Reply With Quote
  #3 (permalink)  
Old 08-28-2008, 03:11 AM
Active Member
 
Posts: 30
Default Link to post with anwser

Though, I haven't tried it..........Somedya says this is how we shud go....
Here's the link to the post

[SOLVED] How to retrieve a single appointment java
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.