Class CalendarFolder

    • Constructor Detail

      • CalendarFolder

        public CalendarFolder​(ExchangeService service)
                       throws Exception
        Initializes an unsaved local instance of "CalendarFolder". To bind to an existing calendar folder, use CalendarFolder.Bind() instead. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        Throws:
        Exception - the exception
    • Method Detail

      • bind

        public static CalendarFolder bind​(ExchangeService service,
                                          FolderId id,
                                          PropertySet propertySet)
                                   throws Exception
        Binds to an existing calendar folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        id - the id
        propertySet - the property set
        Returns:
        A CalendarFolder instance representing the calendar folder corresponding to the specified Id
        Throws:
        Exception - the exception
      • bind

        public static CalendarFolder bind​(ExchangeService service,
                                          FolderId id)
                                   throws Exception
        Binds to an existing calendar folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        id - the id
        Returns:
        A CalendarFolder instance representing the calendar folder corresponding to the specified Id
        Throws:
        Exception - the exception
      • bind

        public static CalendarFolder bind​(ExchangeService service,
                                          WellKnownFolderName name,
                                          PropertySet propertySet)
                                   throws Exception
        Binds to an existing calendar folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        name - the name
        propertySet - the property set
        Returns:
        A CalendarFolder instance representing the calendar folder with the specified name.
        Throws:
        Exception - the exception
      • bind

        public static CalendarFolder bind​(ExchangeService service,
                                          WellKnownFolderName name)
                                   throws Exception
        Binds to an existing calendar folder and loads the specified set of property. Calling this method results in a call to EWS.
        Parameters:
        service - the service
        name - the name
        Returns:
        A CalendarFolder instance representing the calendar folder with the specified name.
        Throws:
        Exception - the exception
      • findAppointments

        public FindItemsResults<AppointmentfindAppointments​(CalendarView view)
                                                       throws Exception
        Obtains a list of appointments by searching the contents of this folder and performing recurrence expansion for recurring appointments. Calling this method results in a call to EWS.
        Parameters:
        view - the view
        Returns:
        An object representing the results of the search operation.
        Throws:
        Exception - the exception