Interface ReminderRepository

    • Method Detail

      • findByUserId

        List<Reminder> findByUserId​(String id)
        Finds in this repository all the reminders set by and for the specified user.
        Parameters:
        id - the unique identifier of a user.
        Returns:
        a list of Reminder instances. Empty if the user has no reminders.
      • findByContributionId

        List<Reminder> findByContributionId​(ContributionIdentifier contributionId)
        Finds in this repository all the reminders related to the specified contribution.
        Parameters:
        contributionId - the unique identifier of a contribution.
        Returns:
        a list of Reminder instances. Empty if there is no reminders that were set for the contribution.
      • findByContributionAndUserIds

        List<Reminder> findByContributionAndUserIds​(ContributionIdentifier contributionId,
                                                    String userId)
        Finds in this repository all the reminders related to the specified contribution that were set by and for the specified user.
        Parameters:
        contributionId - the unique identifier of a contribution.
        userId - the unique identifier of a user.
        Returns:
        a list of Reminder instances. Empty if the user has set no reminders for the contribution.