Class ServiceReminder
java.lang.Object
org.silverpeas.mobile.shared.services.rest.AbstractService
org.silverpeas.mobile.shared.services.rest.ServiceReminder
Service to manage requests related to reminders.
- Author:
- svu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateReminder(String componentInstanceId, String type, String localId, ReminderDTO reminderDTO, RestCallback<ReminderDTO> callback) Creates a new reminder.voiddeleteReminder(String componentInstanceId, String type, String localId, String id, RestCallback<Void> callback) Deletes a reminder.voidgetPossibleDurations(String componentInstanceId, String type, String localId, String property, RestCallback<List<String>> callback) Retrieves possible durations for a reminder.voidgetReminders(String componentInstanceId, String type, String localId, RestCallback<List<ReminderDTO>> callback) Retrieves reminders for a given component instance, type, and local ID.voidupdateReminder(String componentInstanceId, String type, String localId, String id, ReminderDTO reminderDTO, RestCallback<ReminderDTO> callback) Updates an existing reminder.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
-
ServiceReminder
public ServiceReminder()
-
-
Method Details
-
getPossibleDurations
public void getPossibleDurations(String componentInstanceId, String type, String localId, String property, RestCallback<List<String>> callback) Retrieves possible durations for a reminder.- Parameters:
componentInstanceId- The ID of the component instance.type- The type of the reminder.localId- The local ID.property- The property for which to get possible durations.callback- The callback to handle the response (list of strings).
-
getReminders
public void getReminders(String componentInstanceId, String type, String localId, RestCallback<List<ReminderDTO>> callback) Retrieves reminders for a given component instance, type, and local ID.- Parameters:
componentInstanceId- The ID of the component instance.type- The type of the reminder.localId- The local ID.callback- The callback to handle the response (list of ReminderDTO).
-
deleteReminder
public void deleteReminder(String componentInstanceId, String type, String localId, String id, RestCallback<Void> callback) Deletes a reminder.- Parameters:
componentInstanceId- The ID of the component instance.type- The type of the reminder.localId- The local ID.id- The ID of the reminder to delete.callback- The callback to handle the response (no data returned).
-