Class ServiceReminder

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

public class ServiceReminder extends AbstractService
Service to manage requests related to reminders.
Author:
svu
  • 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).
    • createReminder

      public void createReminder(String componentInstanceId, String type, String localId, ReminderDTO reminderDTO, RestCallback<ReminderDTO> callback)
      Creates a new reminder.
      Parameters:
      componentInstanceId - The ID of the component instance.
      type - The type of the reminder.
      localId - The local ID.
      reminderDTO - The reminder data to create.
      callback - The callback to handle the response (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).
    • updateReminder

      public void updateReminder(String componentInstanceId, String type, String localId, String id, ReminderDTO reminderDTO, RestCallback<ReminderDTO> callback)
      Updates an existing 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 update.
      reminderDTO - The reminder data to update.
      callback - The callback to handle the response (ReminderDTO).