Class ServiceUserCalendar

java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceUserCalendar

public class ServiceUserCalendar extends AbstractService
Service to manage requests related to user calendars.
Author:
svu
  • Constructor Details

    • ServiceUserCalendar

      public ServiceUserCalendar()
  • Method Details

    • getCalendars

      public void getCalendars(String componentInstanceId, RestCallback<List<CalendarDTO>> callback)
      Retrieves calendars for a given component instance.
      Parameters:
      componentInstanceId - The ID of the component instance.
      callback - The callback to handle the response (list of CalendarDTO).
    • getOccurrences

      public void getOccurrences(String componentInstanceId, String calendarId, String startDateOfWindowTime, String endDateOfWindowTime, String zoneid, RestCallback<List<CalendarEventDTO>> callback)
      Retrieves occurrences of calendar events for a given calendar and time window.
      Parameters:
      componentInstanceId - The ID of the component instance.
      calendarId - The ID of the calendar.
      startDateOfWindowTime - The start date of the time window.
      endDateOfWindowTime - The end date of the time window.
      zoneid - The timezone ID.
      callback - The callback to handle the response (list of CalendarEventDTO).
    • getEvent

      public void getEvent(String calendarId, String eventId, RestCallback<CalendarEventDTO> callback)
      Retrieves a specific event from a calendar.
      Parameters:
      calendarId - The ID of the calendar.
      eventId - The ID of the event.
      callback - The callback to handle the response (CalendarEventDTO).