Class ServiceUserCalendar
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceUserCalendar
Service to manage requests related to user calendars.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetCalendars(String componentInstanceId, RestCallback<List<CalendarDTO>> callback) Retrieves calendars for a given component instance.voidgetEvent(String calendarId, String eventId, RestCallback<CalendarEventDTO> callback) Retrieves a specific event from a calendar.voidgetOccurrences(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.Methods inherited from class org.silverpeas.mobile.shared.services.rest.AbstractService
asBoolean, delete, encode, escapeJson, get, getText, initContext, mapArray, post, put, request, request, requestJson, requestText, toJsonArray
-
Constructor Details
-
ServiceUserCalendar
public ServiceUserCalendar()
-
-
Method Details
-
getCalendars
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
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).
-