Package microsoft.exchange.webservices.data

Examples of microsoft.exchange.webservices.data.CalendarView


  @Override
  public Collection<AppointmentDto> getAllAppointments(final DateTime startDate, final DateTime endDate)
      throws Exception {
    // Return a task for each calendar item
    final Set<AppointmentDto> results = new HashSet<AppointmentDto>();
    final CalendarView calendarView = new CalendarView(startDate.toDate(), endDate.toDate(), MAX_RESULTS);
    calendarView.setPropertySet(createIdOnlyPropertySet());
    final FindItemsResults<Appointment> appointments = service.findAppointments(WellKnownFolderName.Calendar, calendarView);
    service.loadPropertiesForItems(appointments, createCalendarPropertySet());
    for (final Appointment appointment : appointments.getItems()) {
      DateTime eventStartDate = convertToJodaDateTime(appointment.getStart(), appointment.getIsAllDayEvent());
      DateTime eventEndDate = convertToJodaDateTime(appointment.getEnd(), appointment.getIsAllDayEvent());
View Full Code Here

TOP

Related Classes of microsoft.exchange.webservices.data.CalendarView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.