Interface PersistentDateReminderService

  • All Known Implementing Classes:
    DefaultDateReminderService

    public interface PersistentDateReminderService
    A service on the persistent date reminder for Silverpeas entities. It wraps the mechanism to compute and to retrieve a date reminder for a given resource handled in Silverpeas.
    Author:
    Cécile Bonin
    • Method Detail

      • get

        PersistentResourceDateReminder get​(EntityReference resource)
        Gets the DateReminder of the resource referred by the specified EntityReference. If no date reminder exists for the resource, then PersistentResourceDateReminder#NoneDateReminder is returned.
        Parameters:
        resource - a reference to the resource for which a date reminder will be initialized.
        Returns:
        either the date reminder associated with the specified resource or NoneDateReminder if no such date reminder exists.
      • remove

        void remove​(EntityReference resource)
        Removes quietly the DateReminder of the resource referred by the specified entity reference.
        Parameters:
        resource - the resource for which the dateReminder has to be removed.
      • listAllDateReminderMaturing

        Collection<PersistentResourceDateReminder> listAllDateReminderMaturing​(Date deadLine)
        Gets the DateReminder of the resource that mature.
        Parameters:
        deadLine - the date which must trigger the date reminder.
        Returns:
        the list of date reminder that mature.