Class ServiceAlmanach
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceAlmanach
Service to manage requests related to almanach (calendar events).
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateEvent(String componentInstanceId, String calendarId, CalendarEventCreationDTO event, RestCallback<CalendarEventDTO> callback) Creates a new event in a calendar.voidgetCalendars(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.voidupdateParticipation(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.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
-
ServiceAlmanach
public ServiceAlmanach()
-
-
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).
-