Class ServiceAlmanach

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

public class ServiceAlmanach extends AbstractService
Service to manage requests related to almanach (calendar events).
Author:
svu
  • Constructor Details

    • ServiceAlmanach

      public ServiceAlmanach()
  • 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).
    • updateParticipation

      public void updateParticipation(String componentInstanceId, String calendarId, String eventId, String occurrenceId, String attendeeId, String zoneid, CalendarEventAttendeeDTO attendeeDTO, RestCallback<CalendarEventDTO> callback)
      Updates the participation of an attendee to an event occurrence.
      Parameters:
      componentInstanceId - The ID of the component instance.
      calendarId - The ID of the calendar.
      eventId - The ID of the event.
      occurrenceId - The ID of the occurrence.
      attendeeId - The ID of the attendee.
      zoneid - The timezone ID.
      attendeeDTO - The attendee data to update.
      callback - The callback to handle the response (CalendarEventDTO).
    • createEvent

      public void createEvent(String componentInstanceId, String calendarId, CalendarEventCreationDTO event, RestCallback<CalendarEventDTO> callback)
      Creates a new event in a calendar.
      Parameters:
      componentInstanceId - The ID of the component instance.
      calendarId - The ID of the calendar.
      event - The event data to create.
      callback - The callback to handle the response (CalendarEventDTO).